package cn.ftx.result.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * <p>
 *     状态码枚举
 * </p>
 *
 * @author AUTHER
 * @since 2021-04-29
 */
@Getter
@AllArgsConstructor
public enum ResultCode {

    //==

    //成功状态码
    SUCCESS(200,"成功"),
    ERROR(500,"异常"),
    //参数错误：1001-1999
    PARAM_IS_INVALID(1001,"参数无效"),
    PARAM_IS_BLANK(1002,"参数为空"),
    PARAM_TYPE_BIND_ERROR(1003,"参数类型错误"),
    PARAM_NOT_COMPLETE(1004,"参数缺失");

    private Integer code;
    private String message;

}
